<script setup lang="ts">
import { seoConfig } from '~/config/seo'

useSeoMeta({
  title: seoConfig.auth.idVerify.title,
  description: seoConfig.auth.idVerify.description,
  keywords: seoConfig.auth.idVerify.keywords
})

const advantages = [
  {
    icon: 'lucide:shield-check',
    title: '权威数据',
    description: '对接公安部权威数据库，确保验证结果准确可靠'
  },
  {
    icon: 'lucide:zap',
    title: '快速响应',
    description: '毫秒级响应速度，极速完成身份验证'
  },
  {
    icon: 'lucide:check-circle',
    title: '高准确率',
    description: '验证准确率99.9%以上，保障业务安全'
  },
  {
    icon: 'lucide:lock',
    title: '信息安全',
    description: '数据加密传输，严格保护用户隐私信息'
  },
  {
    icon: 'lucide:file-check',
    title: '合规认证',
    description: '满足金融、电信等行业实名制要求'
  },
  {
    icon: 'lucide:code',
    title: '简单易用',
    description: 'RESTful API接口，快速集成到业务系统'
  }
]

const scenarios = [
  {
    icon: 'lucide:landmark',
    title: '金融行业',
    description: '开户验证、贷款审核、支付认证、风险控制',
    color: 'from-blue-500 to-cyan-500'
  },
  {
    icon: 'lucide:smartphone',
    title: '电信运营',
    description: '实名登记、号码激活、业务办理、账户管理',
    color: 'from-purple-500 to-pink-500'
  },
  {
    icon: 'lucide:users',
    title: '社交平台',
    description: '用户注册、账号认证、信息完善、安全验证',
    color: 'from-green-500 to-emerald-500'
  },
  {
    icon: 'lucide:building-2',
    title: '企业服务',
    description: '员工入职、合同签署、权限管理、考勤打卡',
    color: 'from-orange-500 to-red-500'
  },
  {
    icon: 'lucide:hotel',
    title: '酒店旅游',
    description: '入住登记、实名预订、身份核验、安全管理',
    color: 'from-indigo-500 to-blue-500'
  },
  {
    icon: 'lucide:graduation-cap',
    title: '教育培训',
    description: '学员注册、考试报名、证书验证、资格审核',
    color: 'from-yellow-500 to-orange-500'
  }
]
</script>

<template>
  <div class="min-h-screen">
    <ProductHero
      title="身份证实名认证"
      description="对接公安部权威数据，验证身份证号和姓名的一致性，确保用户身份真实可靠，满足金融、电信等行业实名制监管要求"
    />

    <section class="py-10 md:py-15 bg-gray-50">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">产品优势</h2>
          <p class="text-lg text-gray-600">权威数据，快速准确</p>
        </div>
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div v-for="(advantage, index) in advantages" :key="index" class="bg-white rounded-2xl p-6 md:p-8 shadow-sm hover:shadow-lg transition-all group">
            <div class="w-14 h-14 bg-gradient-to-br from-orange-500 to-red-500 rounded-xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform">
              <Icon :name="advantage.icon" class="w-7 h-7 text-white" />
            </div>
            <h3 class="text-xl font-bold text-gray-900 mb-3">{{ advantage.title }}</h3>
            <p class="text-gray-600 leading-relaxed">{{ advantage.description }}</p>
          </div>
        </div>
      </div>
    </section>

    <section class="py-10 md:py-15 bg-white">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">行业应用场景</h2>
          <p class="text-lg text-gray-600">广泛应用于各行各业</p>
        </div>
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div v-for="(scenario, index) in scenarios" :key="index" class="group relative bg-white rounded-2xl p-6 md:p-8 border-2 border-gray-100 hover:border-transparent hover:shadow-xl transition-all overflow-hidden">
            <div class="absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity" :class="scenario.color" />
            <div class="relative">
              <div class="w-14 h-14 rounded-xl flex items-center justify-center mb-6 bg-gradient-to-br" :class="scenario.color">
                <Icon :name="scenario.icon" class="w-7 h-7 text-white" />
              </div>
              <h3 class="text-xl font-bold text-gray-900 mb-3">{{ scenario.title }}</h3>
              <p class="text-gray-600 leading-relaxed">{{ scenario.description }}</p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- CTA 部分 -->
    <CallToAction />
  </div>
</template>
